/* Author:

Gabor Gyorfi

*/

jQuery(function($) {
	hljs.tabReplace = '   '; // 4 spaces
//	hljs.tabReplace = '<span class="indent">\t</span>';
	hljs.initHighlightingOnLoad();
	var nav = $('.nav'),
		links = nav.find('li');
	$(links[0]).find('img').css({ opacity: 1, width: 40, height: 40 });
	nav.wheelmenu({
		positions: [ 270, 0, 45, 90, 135, 180 ],
		duration: 200,
		dratio: 1.3,
		onClick: function(prevPos,pos) {
			var duration = nav.wheelmenu('animate',pos);
			$(links[pos]).find('img').animate({ opacity: 1, width: 39, height: 39, duration: duration });
			$(links[prevPos]).find('img').animate({ opacity: .6, width: 25, height: 25, duration: duration });
			return false;
		}
	});
});



